package com.commander.gui;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;

import com.commander.Commander;

public class Console {
	public static Console theConsole = new Console();
	private Text console;
	private Console() {}

	private void initialize(){
		 console = new Text(CommanderGUIHandler.getShell(), SWT.BORDER);
		 console.setSize(500, 200);
		 write("Welcome to Commander - The MySQL Administrator Tool!");
	}
	
	public void clear(){console.setText("");}
	public void write(String message){console.append(message);}
}
